package cn.wolfcode.domain;

import com.alibaba.fastjson.JSON;
import lombok.Data;

import java.util.ArrayList;
import java.util.List;

@Data
public class Employee {
    private Long id;

    private String name;

    private String password;

    private String email;

    private Integer age;

    private boolean admin;

    private String username;


    private Department dept;
    @Override
    public String toString() {
        return JSON.toJSONString(this);
    }
//用于回显右边的角色信息  集合
    private List<Role> roles=new ArrayList<>();

}